import ssl

import scrapy

source = 4
class A51jobSpider(scrapy.Spider):
    name = 'a51job'
    allowed_domains = ['search.51job.com']
    ssl._create_default_https_context = ssl._create_unverified_context

    #start_urls = ['https://search.51job.com/list/000000,000000,0000,00,9,99,{key},2,1.html?lang=c&stype=&postchannel=0000&workyear=99&cotype=99&degreefrom=99&jobterm=99&companysize=99&providesalary=99&lonlat=0%2C0&radius=-1&ord_field=0&confirmdate=9&fromType=&dibiaoid=0&address=&line=&specialarea=00&from=&welfare=']
    start_urls = ['https://www.baidu.com']

    def parse(self, response):
        print('aqie',response.request.headers['User-Agent'], '\n')
        pass
